package xxf.person.web.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import xxf.person.core.BaseController;

/**
* @ClassName: FirstIndexController
* @Description: TODO
* @author YQ
* @date 2013年9月16日 上午9:33:12
*/
@Controller
public class FirstIndexController extends BaseController{


	@RequestMapping(value = "findex")
    public String findex(ModelMap modelMap,
			HttpServletRequest request, HttpServletResponse response) {
        return "index/findex";
    }


	/**
	* @Title: ajaxData
	* @Description: TODO
	* @param @param modelMap
	* @param @param request
	* @param @param response
	* @param @return
	* @param @throws Exception
	* @return Object
	* @throws
	 */
	@RequestMapping(value = "/ajaxData")
	@ResponseBody
	public Object ajaxData(ModelMap modelMap,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		Map<String, Object> mapDate=new HashMap<String, Object>();
		mapDate.put("username", "yq");
		return mapDate;
	}

}
